package com.shop.product.repository;



import com.shop.common.enums.ProductStatus;
import com.shop.product.model.ProductInfo;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


public interface ProductInfoRepository extends JpaRepository<ProductInfo,String> {

    List<ProductInfo> findAllByProductStatusAndRecommend(ProductStatus productStatus, Integer recommend, Pageable pageable);

    List<ProductInfo> findByProductStatus(ProductStatus productStatus);
}
